Optimal. Leaf size=79 \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh (c+d x)}{\sqrt{a}}\right )}{2 a^{3/2} d \sqrt{a-b}}+\frac{\tanh (c+d x)}{2 a d \left (a-(a-b) \tanh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0768361, antiderivative size = 79, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {3191, 199, 208} \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh (c+d x)}{\sqrt{a}}\right )}{2 a^{3/2} d \sqrt{a-b}}+\frac{\tanh (c+d x)}{2 a d \left (a-(a-b) \tanh ^2(c+d x)\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3191
Rule 199
Rule 208
Rubi steps
\begin{align*} \int \frac{\cosh ^2(c+d x)}{\left (a+b \sinh ^2(c+d x)\right )^2} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{\left (a-(a-b) x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac{\tanh (c+d x)}{2 a d \left (a-(a-b) \tanh ^2(c+d x)\right )}+\frac{\operatorname{Subst}\left (\int \frac{1}{a+(-a+b) x^2} \, dx,x,\tanh (c+d x)\right )}{2 a d}\\ &=\frac{\tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh (c+d x)}{\sqrt{a}}\right )}{2 a^{3/2} \sqrt{a-b} d}+\frac{\tanh (c+d x)}{2 a d \left (a-(a-b) \tanh ^2(c+d x)\right )}\\ \end{align*}
Mathematica [A] time = 0.206394, size = 78, normalized size = 0.99 \[ \frac{\frac{\tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh (c+d x)}{\sqrt{a}}\right )}{\sqrt{a-b}}+\frac{\sqrt{a} \sinh (2 (c+d x))}{2 a+b \cosh (2 (c+d x))-b}}{2 a^{3/2} d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.053, size = 404, normalized size = 5.1 \begin{align*}{\frac{1}{da} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{3} \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{4}a-2\, \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}a+4\, \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}b+a \right ) ^{-1}}+{\frac{1}{da}\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{4}a-2\, \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}a+4\, \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}b+a \right ) ^{-1}}+{\frac{1}{2\,da}{\it Artanh} \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}}-{\frac{b}{2\,da}{\it Artanh} \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{-b \left ( a-b \right ) }}}{\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}}-{\frac{1}{2\,da}\arctan \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}}-{\frac{b}{2\,da}\arctan \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{-b \left ( a-b \right ) }}}{\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.68031, size = 3321, normalized size = 42.04 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.29874, size = 173, normalized size = 2.19 \begin{align*} \frac{\arctan \left (\frac{b e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a - b}{2 \, \sqrt{-a^{2} + a b}}\right )}{2 \, \sqrt{-a^{2} + a b} a d} - \frac{2 \, a e^{\left (2 \, d x + 2 \, c\right )} - b e^{\left (2 \, d x + 2 \, c\right )} + b}{{\left (b e^{\left (4 \, d x + 4 \, c\right )} + 4 \, a e^{\left (2 \, d x + 2 \, c\right )} - 2 \, b e^{\left (2 \, d x + 2 \, c\right )} + b\right )} a b d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]